7-11  Ŷʽķֽ⡣
⣺Enterȷϡ
% ʹhornorжʽֽ
syms x
>> fun1=3*x^3+5*x^2-14*x-26
 fun1 =
 3*x^3+5*x^2-14*x-26
>> horner(fun1)
 ans =
 -26+(-14+(5+3*x)*x)*x
>> fun2=2*x^3+4*x^2-9*x+6
 fun2 =
 2*x^3+4*x^2-9*x+6
>> horner(fun2)
 ans =
 6+(-9+(4+2*x)*x)*x
>>
